		<?php $routeName = sfContext::getInstance()->getRouting()->getCurrentRouteName() ?>
		<div id="sidebar" >
			<?php include_component('searcher', 'sideboxRechercheDirecte') ?>
			<?php include_partial('global/suggestionsSidebar') ?>
			<?php if ($routeName!='list_favorites'): ?>
				<?php include_component('searcher', 'sideboxFavorites') ?>
			<?php endif; ?>
		</div>	
	
		<div id="main">		
<div id="breadcrumbs"><?php echo link_to(__("Home"), '@homepage') ?> > <?php echo link_to(__("Location"), '@searcher_'.$sf_user->getLangCulture()) ?> > <?php echo __("VillasWithSwimmingPool") ?></div>
<div class="postSection">
<h1><?php echo __("VillasWithSwimmingPool") ?></h1>
<!--
<blockquote>
<p>Des appartements &#224; bon prix et tr&#232;s bien &#233;quip&#233;s</p>
</blockquote>

<?php if ($sf_params->get('page') == 1): ?>
<p>Les appartements sont aussi un excellent choix pour ce qui veuillent jouer de la Costa Brava. La plupart de nos appartements ont piscine et se trouvent &#224; tr&#232;s peu distance des criques et plages de la zone.</p>
<?php endif ?>
-->
</div>

<div id="nbResults"><?php echo $pager->getNbResults() ?> <?php echo __("residences")?>. <?php echo $pager->getFirstIndice() ?> - <?php echo $pager->getLastIndice() ?></div>
			
		<?php if ($pager->haveToPaginate()): ?>
		<div class="pagination-searcher-top-home">
<ul class="pagination-flickr">
  <?php if ($sf_params->get('page') >= $pager->getMaxPerPage()-1): ?>
  <li>
    <a href="<?php echo url_for($sf_context->getInstance()->getRouting()->getCurrentRouteName()) ?>/1">
      &laquo;
	</a>
   </li>
   <li>
    <a href="<?php echo url_for($sf_context->getInstance()->getRouting()->getCurrentRouteName()) ?>/<?php echo $pager->getPreviousPage() ?>">
    &lt;
    </a>
   </li>
   <?php endif ?>	
  <?php $links = $pager->getLinks(); foreach ($links as $page): ?>
    <li>
	<a 
	<?php if ($sf_params->get('page')==$page): ?>
		class='active'
	<?php endif ?>	
		href="<?php echo url_for($sf_context->getInstance()->getRouting()->getCurrentRouteName()) ?>/<?php echo $page ?>">
    <?php echo $page ?></a>
	</li>
  <?php endforeach ?>
 <?php if ($sf_params->get('page') <= $pager->getMaxPerPage()+1): ?> 
  <li>
    <a class="next" href="<?php echo url_for($sf_context->getInstance()->getRouting()->getCurrentRouteName()) ?>/<?php echo $pager->getNextPage() ?>">
      &gt;
    </a>
 </li>
 <li>
    <a href="<?php echo url_for($sf_context->getInstance()->getRouting()->getCurrentRouteName()) ?>/<?php echo $pager->getLastPage() ?>">
      &raquo;
    </a>
	</li>
	<?php endif ?>	
</ul>
</div>
	<?php endif ?>	
	<div style="float:left;">
	<?php foreach($pager->getResults() as $vivienda): ?>
		<div class="post">
				<div id="minimumPrice">
				</div>	
				<h1><a style="text-decoration: underline;" href="<?php echo url_for('location_show', ViviendaAlquiler::getSlugVivienda($vivienda->getId())) ?><?php echo $vivienda->getViviendaSluggie($vivienda->getId()) ?>"><?php echo ucwords(__(ViviendaAlquiler::getSlugVivienda($vivienda->getApartCasa())))." ".ucwords($vivienda->getNombre()) ?></a><span class="village"><span class="zone"><?php echo $vivienda->getZonas()->getZona().",</span> ".$vivienda->getZonas()->getLocalidades()->getLocalidad() ?></span></h1>
				<?php if (count($vivienda->getFoto()) > 0 && $vivienda->getGaleria()): ?>
				<p><?php echo link_to(image_tag(sfConfig::get('app_static_domain_fotos').$vivienda->getUsuarioId().'/'.$vivienda->getId().'/thumbs/'.$vivienda->getFoto()->getFirst()->getNombrefoto(), 'class=float-left width=100 height=75 alt='.ucwords($vivienda->getSlug()).' '.$vivienda->getNombre()), 'location_show_'.$sf_user->getLangCulture(), $vivienda) ?></p>
				<?php else: ?>
				<p><?php echo link_to(image_tag('/fotos/oficina1.jpg', 'class=float-left width=100 height=75 alt='.ucwords($vivienda->getSlug()).' '.$vivienda->getSlug()), 'location_show_'.$sf_user->getLangCulture(), $vivienda) ?></p>
				<?php endif; ?>
				<p><?php if(isset($arrViviendasPrecios[$vivienda->getNombre()]))echo $arrViviendasPrecios[$vivienda->getNombre()];?></p>
				<p style="font-size: 14px;"><?php echo $vivienda->getDescRed($sf_user->getLangCulture()) ?></p>
				<?php if($vivienda->hasOfertaVivienda($vivienda)==1): ?>
					<p class="enOferta"><a href="<?php echo url_for('location_show', ViviendaAlquiler::getSlugVivienda($vivienda->getId())) ?><?php echo $vivienda->getViviendaSluggie($vivienda->getId()) ?>"><?php echo __('enOferta') ?></a></p>
				<?php endif ?>
				<p class="post-footer"><?php include_component('location', 'viviendaFeatures', array('vivienda'=>$vivienda)) ?></p>
				
		</div>
			<?php endforeach ?>		
	</div>					
		
	<?php if ($pager->haveToPaginate()): ?>
		<div class="pagination-searcher-bottom">
	<ul class="pagination-flickr">
  <?php if ($sf_params->get('page') >= $pager->getMaxPerPage()-1): ?>
  <li>
    <a href="<?php echo url_for($sf_context->getInstance()->getRouting()->getCurrentRouteName()) ?>/1">
      &laquo;
	</a>
   </li>
   <li>
    <a href="<?php echo url_for($sf_context->getInstance()->getRouting()->getCurrentRouteName()) ?>/<?php echo $pager->getPreviousPage() ?>">
    &lt;
    </a>
   </li>
   <?php endif ?>	
  <?php $links = $pager->getLinks(); foreach ($links as $page): ?>
    <li>
	<a 
	<?php if ($sf_params->get('page')==$page): ?>
		class='active'
	<?php endif ?>	
		href="<?php echo url_for($sf_context->getInstance()->getRouting()->getCurrentRouteName()) ?>/<?php echo $page ?>">
    <?php echo $page ?></a>
	</li>
  <?php endforeach ?>
 <?php if ($sf_params->get('page') <= $pager->getMaxPerPage()+1): ?> 
  <li>
    <a class="next" href="<?php echo url_for($sf_context->getInstance()->getRouting()->getCurrentRouteName()) ?>/<?php echo $pager->getNextPage() ?>">
      &gt;
    </a>
 </li>
 <li>
    <a href="<?php echo url_for($sf_context->getInstance()->getRouting()->getCurrentRouteName()) ?>/<?php echo $pager->getLastPage() ?>">
      &raquo;
    </a>
	</li>
	<?php endif ?>	
</ul>
	<?php endif ?>	
</div>
</div>